use serde::{Deserialize, Serialize};
use serde_json::Result;

#[derive(Serialize, Deserialize)]
struct Address {
    street: String,
    city: String,
}

fn main() {
    let address = Address {
        street: "123 Main Street".to_owned(),
        city: "London".to_owned(),
    };

    let j = serde_json::to_string_pretty(&address).unwrap();

    println!("{}", j);
}
